package com.deft.design.observer.event.listener;

import com.deft.design.observer.LotteryResult;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Hide丶love
 * @date 2022/05/18
 **/
@Slf4j
public class MessageEventListener implements EventListener<LotteryResult> {

    @Override
    public void doDraw(LotteryResult result) {
        log.info("给用户 {} 发送短信通知(短信)：{}", result.getUId(), result.getMsg());
    }
}
